import { mock } from "mockjs";

const prefix = import.meta.env.VITE_BASE_URL + "/user";
mock(prefix + "/contribute", () => {
  const res = mock({
    success: "请求成功",
    code: 200,
    "data|10": [{
      "id": "@id",
      "username": "@cname",
      nickname: "@ctitle(3,5)",
      desc: "@csentence",
      avatar: "@image",
    }]
  })
  return res;
})